//
//  UserDefaultExtension.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/11.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import Foundation
import UIKit

private let kNahuoTokenKey = "kNahuoTokenKey"
extension UserDefaults {
    func saveAuthenticationToken(token:String) {
        UserDefaults.standard.setValue(token, forKey: kNahuoTokenKey)
    }
    
    func getAuthenticationToken() -> String? {
        return UserDefaults.standard.value(forKey: kNahuoTokenKey) as? String
    }
}
